package ophiux.wechatpay.sdk.common.proxy;

import ophiux.wechatpay.sdk.OphiuxWeChatPaySDKException;
import ophiux.wechatpay.sdk.common.net.INetApiRequest;

public class NetApiRequestProxy implements INetApiRequest{

	INetApiRequest INetApiRequest;
	
	public NetApiRequestProxy(INetApiRequest _INetApiRequest){
		this.INetApiRequest = _INetApiRequest;
	}

	@Override
	public String request(String serviceURL, String methodName, String StrParam)
			throws OphiuxWeChatPaySDKException {
		return INetApiRequest.request(serviceURL, methodName, StrParam);
	}

	@Override
	public String request(String serviceURL, String methodName,
			String StrParam, int timeOut) throws OphiuxWeChatPaySDKException {
		return INetApiRequest.request(serviceURL, methodName, StrParam, timeOut);
	}

	@Override
	public String getPostMethodSSL(String serviceURL, String methodName,
			String StrParam, String sslFilePath, String mch_id) throws OphiuxWeChatPaySDKException{
		return INetApiRequest.getPostMethodSSL(serviceURL, methodName, StrParam, sslFilePath, mch_id);
	}
	
	
}
